package com.changgou.goods.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Spu;

/**
 * spu调用
 * 
 * @author gaofeng
 * @date 2025/4/29 10:52
 */
@FeignClient(name = "goods")
@RequestMapping(value = "/spu")
public interface SpuFeign {
    /**
     * 根据SpuID查询Spu信息
     * 
     * @param spuId spuId
     * @return spu信息
     */
    @GetMapping("/findById/{spuId}")
    Result<Spu> findById(@PathVariable(name = "spuId") Long spuId);
}
